
<?php  foreach ($homemessage['data']['info'] as $key => $value) : ?>
<div class="message">
	<div class="messageimage">
		<?php if(!empty($$value['image'][0] )): ?>
			<img src="<?php echo $value['image'][0] ?>/460" alt="" >
		<?php endif; ?>
	</div>
	<img src="<?php echo $value['head'] ?>/50" alt="" class = 'messageheader'>
	<h2 class = "messagename"><?php echo $value['nick'] ?></h2>
	<p class = "messagecontent"><?php echo $value['text'] ?></p>
</div>
<?php endforeach; ?>
